package com.huawei.codearts.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {


    @GetMapping("/helloword/{name}")
    public String helloworld(@PathVariable("name") String name) {
        System.out.println("获取到的name是：" + name);
        return "获取到的name是：" + name;
    }

}
